/*
 * Copyright 2025-2026 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package hawk.app;

import hawk.demo.*;

/**
 * This class is responsible for
 *
 * @author Hawk
 */
public class Application {

    private final static EnumGenerator enumGenerator = new EnumGenerator("hawk.generated.enums");
    private final static InterfaceGenerator interfaceGenerator = new InterfaceGenerator("hawk.generated.inf");
    private final static AnnotationGenerator annotationGenerator = new AnnotationGenerator("hawk.generated.annotations");
    private final static ClassGenerator classGenerator = new ClassGenerator("hawk.generated.classes");
    private final static GenericGenerator genericGenerator = new GenericGenerator("hawk.generated.generic");
    private final static JavadocGenerator javadocGenerator = new JavadocGenerator("hawk.generated.javadoc");
    private final static CodeAndControlFlowGenerator codeAndControlFlowGenerator = new CodeAndControlFlowGenerator("hawk.generated.code");

    /**
     * 生成的类在src/generated/java目录下
     */
    public static void main(String[] args) {
        enumGenerator.generateSimpleEnum();
        enumGenerator.generateComplexEnum();
        enumGenerator.generateSpecialComplexEnum();

        interfaceGenerator.generateInterface();

        annotationGenerator.generateAnnotation();

        classGenerator.generateClass();

        genericGenerator.generateGeneric();

        javadocGenerator.generateJavadoc();

        codeAndControlFlowGenerator.generateCodeAndControlFlow();
    }
}
